package com.bite.system.controller.router;


import com.bite.common.core.controller.BaseController;
import com.bite.common.core.domain.R;
import com.bite.system.domain.router.Router;
import com.bite.system.service.router.IRouterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/router")
@RestController
public class RouterController extends BaseController {

    @Autowired
    private IRouterService routerService;

    @GetMapping("/schedule")
    public R<Router> schedule() {
        return ok(routerService.schedule());
    }
}
